<template>
  <div class="unavailable-page">
    <!-- 主要内容区 -->
    <main class="main-content">
      <div class="card-container">
        <!-- 左侧装饰区 -->
        <div class="card-decoration">
          <div class="decoration-content">
            <h2>学无止境</h2>
            <p>气有浩然</p>
            <div class="university-info">
              <img
                src="https://picsum.photos/id/1059/100/100"
                alt="山东大学校徽"
                class="university-logo"
              />
              <div>
                <p class="university-name">山东大学</p>
                <p class="university-motto">1901 - 至今</p>
              </div>
            </div>
          </div>
        </div>

        <!-- 右侧信息区 -->
        <div class="card-info">
          <div class="info-content">
            <div class="notification-icon">
              <i class="fas fa-info-circle"></i>
            </div>
            <h1 class="main-title">暂不支持注册</h1>
            <p class="description">
              抱歉，目前我们的系统暂未开放注册功能。<br />
              请关注官方通知了解最新动态，感谢您的理解与支持。
            </p>

            <div class="contact-support">
              <p>需要帮助？<a href="#" class="support-link">联系支持团队</a></p>
            </div>
          </div>
        </div>
      </div>
    </main>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped>
/* 基础样式与变量 */
.unavailable-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  height: calc(100vh - 60px);
  flex-direction: column;
}

/* 山东大学主题色 */
:root {
  --sdu-red: rgb(156, 12, 19);
  --sdu-red-dark: #7d0a11;
  --sdu-red-light: #f8e8ea;
  --sdu-gray: #8e8e8e;
  --text-dark: #333;
  --text-light: #fff;
  --bg-light: #f9f9f9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* 主要内容区样式 */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--bg-light);
}

.card-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 左侧装饰区样式 */
.card-decoration {
  flex: 1;
  background: linear-gradient(135deg, var(--sdu-red-dark), var(--sdu-red));
  color: rgb(82, 82, 82);
  padding: 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.card-decoration::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://picsum.photos/id/1054/800/1200');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  mix-blend-mode: lighten;
}

.decoration-content {
  position: relative;
  z-index: 1;
}

.decoration-content h2 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.decoration-content p {
  font-size: 24px;
  margin-bottom: 40px;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.university-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.university-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.university-name {
  font-size: 18px;
  font-weight: bold;
}

.university-motto {
  font-size: 14px;
  opacity: 0.8;
}

/* 右侧信息区样式 */
.card-info {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-content {
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.notification-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--sdu-red-light);
  color: var(--sdu-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 36px;
  box-shadow: 0 4px 12px rgba(156, 12, 19, 0.15);
}

.main-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.description {
  color: var(--sdu-gray);
  line-height: 1.6;
  margin-bottom: 40px;
  font-size: 15px;
  color: #ff0000;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.primary-btn,
.secondary-btn {
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  background-color: var(--sdu-red);
  color: white;
  box-shadow: 0 4px 12px rgba(156, 12, 19, 0.2);
}

.primary-btn:hover {
  background-color: var(--sdu-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(156, 12, 19, 0.25);
}

.secondary-btn {
  background-color: white;
  color: var(--text-dark);
  border: 1px solid #ddd;
}

.secondary-btn:hover {
  border-color: var(--sdu-red);
  color: var(--sdu-red);
  transform: translateY(-2px);
}

.contact-support {
  color: var(--sdu-gray);
  font-size: 14px;
}

.support-link {
  color: var(--sdu-red);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* 响应式设计 */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .card-container {
    flex-direction: column;
  }

  .card-decoration {
    padding: 30px 20px;
    text-align: center;
  }

  .decoration-content h2 {
    font-size: 36px;
  }

  .decoration-content p {
    font-size: 20px;
  }

  .university-info {
    justify-content: center;
  }

  .card-info {
    padding: 40px 20px;
  }
}
</style>
